package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.mapper.DrawingMapper;

@CrossOrigin
@Controller
@ResponseBody
public class FindAllRoughsketchController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private DrawingMapper drawingMapper;
    @RequestMapping(value = "/findAllDrawingInfo",method = RequestMethod.POST)
    public ResultData findAllDrawingInfo(){
        System.out.println("用户画稿前端连接");
        resultData.data = drawingMapper.findAllFromroughsketch();
        return resultData;
    }
}
